import React from "react";
import {Button, View} from "react-native";
import {DrawerNavigator} from "react-navigation";
import {ProducerTab} from "./Tab";


export const ProducerMenu = DrawerNavigator({
  Home: {
    screen: ProducerTab,
  },
}, {
  drawerWidth: 200,
  drawerPosition: 'right',
  contentComponent : props => {
    return (
      <View style={menuStyle.container}>
        <Button title="注销登录"　onPress={() => {
          props.navigation.navigate('Login', {autoLogin: false})
        }}></Button>
      </View>
    )
  }
});

const menuStyle = {
  container: {
    paddingVertical: 10,
    paddingHorizontal: 5,
  }
}
